<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://img.hogacn.com/passport/01/css/public_ms.css">
<script language="javascript" type="text/javascript" src="http://img.hogacn.com/tophtm/01/mainTop.js"></script>
<script language="javascript" type="text/javascript" src="http://img.hogacn.com/js/util/01/jquery1.2.6.pack.js"></script>
<title>昊嘉-安全中心</title>
<script>
$(document).ready(function() {
	$("#do").click(function() {
		$("#cl").show();
		try {	
			document.execCommand("SaveAs","","密保卡.htm");
		}catch(e){
			if(copy_clip('mbcard')){
				alert("密保卡已复制，请在本地新建文本文件，然后把同时按CTRL键和V键将密保卡复制保存到文本文件中");
			}
		}
		//self.parent.tb_remove();
	});
	$("#cl").click(function(event) {
		self.parent.tb_remove();
	});
});

function copy_clip(copyObjectName){
    var con = document.getElementById(copyObjectName);
    var mytext = con.value;
    
    if (window.clipboardData){
        // IE
        window.clipboardData.setData("Text", mytext);
        // Netscape
    }else if(navigator.userAgent.indexOf("Opera") != -1) {
        alert("暂不支持Opera");
        return false;
  }else if (window.netscape){
        try{
            netscape.security.PrivilegeManager.enablePrivilege ('UniversalXPConnect');
        }catch(e){
            alert("被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true' \n\n您也可以点击鼠标左键托选密保卡然后点击鼠标右键复制，然后保存到本地文本中");
        }
        var copytext=mytext;
        //alert("copytext set");
        var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
        //alert("Just tried to set str")
        if (!str) return false;
        str.data = copytext;
        //alert("Just set str.data");
        var trans = Components.classes["@mozilla.org/widget/transferable;1"].
        createInstance(Components.interfaces.nsITransferable);
        if (!trans) return false;
        //alert("Just set trans");
        trans.addDataFlavor("text/unicode");
        trans.setTransferData("text/unicode",str,copytext.length * 2);

        var clipid = Components.interfaces.nsIClipboard;
        var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
        if (!clip) return false;
        
        clip.setData(trans,null,clipid.kGlobalClipboard);
    }
    alert("Following info was copied to your clipboard:\n\n" + mytext);
    return false;
}

</script>
<style type="text/css">
<!--
html {
	background-color: #FFFFFF;
}
body {
	background-color: #FFFFFF;
}
-->
</style>
</head>
<body>
<div>
	<h3 class="h05"><span>领取密保卡</span></h3>
		<ul class="accountbox">
		<li>&nbsp;</li>
		<li><a href='#'>重要说明</a></li>
		<li>请不要将密保卡保存在公用电脑中，如网吧、公司、公用电脑。</li>
		<li>请在3天内绑定该密保卡，过期密保卡将失效</li>
		<li>为了方便使用，建议您将密保卡打印、手抄或存放到手机中。</li>
		<li>&nbsp;</li>
		<li>
			<input class="button01" type="button" id="do" value="下载密保卡" />
			&nbsp;&nbsp;&nbsp;
			<input class="button01" type="button" id="cl" style="display:none" value="关闭窗口" />
		</li>
		<li>&nbsp;</li>
		<li id=mbcard> <table width='250' border='1' cellpadding='5' cellspacing='0' bordercolor='#9999CC'><tr><td colspan='10'>卡序:4075179091179755 </td></tr><tr bgcolor='#CCCCFF' align='center'><td>&nbsp;</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td><td>I</td></tr><tr align='center'><td bgcolor='#CCCCFF'>1</td><td>20</td><td>05</td><td>42</td><td>91</td><td>78</td><td>74</td><td>49</td><td>66</td><td>89</td></tr><tr align='center'><td bgcolor='#CCCCFF'>2</td><td>07</td><td>27</td><td>76</td><td>15</td><td>74</td><td>73</td><td>42</td><td>58</td><td>49</td></tr><tr align='center'><td bgcolor='#CCCCFF'>3</td><td>62</td><td>62</td><td>94</td><td>96</td><td>65</td><td>67</td><td>01</td><td>41</td><td>43</td></tr><tr align='center'><td bgcolor='#CCCCFF'>4</td><td>23</td><td>57</td><td>01</td><td>63</td><td>42</td><td>72</td><td>41</td><td>23</td><td>87</td></tr><tr align='center'><td bgcolor='#CCCCFF'>5</td><td>40</td><td>39</td><td>24</td><td>42</td><td>72</td><td>62</td><td>66</td><td>61</td><td>55</td></tr><tr align='center'><td bgcolor='#CCCCFF'>6</td><td>13</td><td>51</td><td>46</td><td>64</td><td>88</td><td>85</td><td>55</td><td>28</td><td>17</td></tr><tr align='center'><td bgcolor='#CCCCFF'>7</td><td>86</td><td>53</td><td>97</td><td>32</td><td>90</td><td>42</td><td>76</td><td>47</td><td>43</td></tr><tr align='center'><td bgcolor='#CCCCFF'>8</td><td>40</td><td>42</td><td>81</td><td>00</td><td>79</td><td>07</td><td>04</td><td>21</td><td>45</td></tr><tr align='center'><td bgcolor='#CCCCFF'>9</td><td>25</td><td>55</td><td>19</td><td>94</td><td>03</td><td>62</td><td>90</td><td>67</td><td>09</td></tr></table> </li>
		<li>&nbsp;</li>
	</ul>
 </div>
</body>
</html>